<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pagenotfound extends CI_Controller {
  public function __construct() {
    parent::__construct();
  }
  
  public function index() {
    $uri_1 = $this->uri->segment(1);
    $uri_2 = $this->uri->segment(2);
    
    if ($uri_1 == 'justread' || $uri_1 == 'image' || $uri_1 == 'photography' || $uri_1 == 'gallery') {
      redirect('/','location', 301);
    }
    else {
      $this->load->view('page_not_found');
    }
  }
}